﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MebAppMarketplace.Model
{
    public class User : BaseModel
    {
        public string UserName { get; set; }
        public string Password { get; set; }
        public string RealName { get; set; }
        public string Email { get; set; }
        public bool Enabled { get; set; }
        public string Roles { get; set; }
        public DateTime? LastLoginAt { get; set; }
        public string LastLoginIp { get; set; }
        public string LastLoginMachine { get; set; }
        public DateTime CreateTime { get; set; }
    }
    /// <summary>
    /// 用户购买的App
    /// </summary>
    public class UserApp : BaseModel
    {
        public Guid AppID { get; set; }
        public Guid UserID { get; set; }
        public DateTime? LastRunTime { get; set; }
        public DateTime? FirstRunTime { get; set; }
        /// <summary>
        /// App使用次数
        /// </summary>
        public int NAppRuns { get; set; }
        /// <summary>
        /// App核心功能使用次数
        /// </summary>
        public int NCorRuns { get; set; }
        public DateTime CreateTime { get; set; }
        public bool IsDelete { get; set; }
    }

    public class UserRegistrationRequest : BaseModel
    {
        public string RealName { get; set; }
        public string Email { get; set; }
        public string Message { get; set; }
        public AuditState AuditState { get; set; }
        public DateTime? AuditTime { get; set; }
        public string RejectReason { get; set; }
        public DateTime CreateTime { get; set; }
    }

   
}
